package com.service.front.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.front.IMusicListFrontDao;
import com.service.front.IMusicListFrontService;
@Service
public class MusicListFrontServiceImpl implements IMusicListFrontService {

	//调用数据访问层
	@Autowired
	private IMusicListFrontDao dao;
	//查询所有
	@Override
	public List<Map<String, Object>> list() {
		// TODO Auto-generated method stub
		return dao.findAll();
	}
	//根据歌曲id查询单个歌单
	@Override
	public Map<String, Object> findBymid(int musicId) {
		// TODO Auto-generated method stub
		return dao.findBymid(musicId);
	}
	//根据歌单名字查询所有
	@Override
	public List<Map<String, Object>> findBymName(String musicListName) {
		// TODO Auto-generated method stub
		return dao.findBymName(musicListName);
	}

}
